#if !defined(AFX_SELECTSLOTMACHINEDLG_H__C466A529_ED81_474E_9260_DBA33B79AF42__INCLUDED_)
#define AFX_SELECTSLOTMACHINEDLG_H__C466A529_ED81_474E_9260_DBA33B79AF42__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "SlotGutListBox.h"
#include "SQLServerCombo.h"
#include "DatabaseCombo.h"

// SelectSlotMachineDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSelectSlotMachineDlg dialog

class CSelectSlotMachineDlg : public CDialog
{
// Construction
public:
	CSelectSlotMachineDlg(CWnd* pParent = NULL);   // standard constructor

	LPCTSTR GetSlotName() const;
	long GetSlotGutID() const;
	LPCTSTR GetDatabase() const;
	LPCTSTR GetPassword() const;
	LPCTSTR GetUser() const;
	bool UseIntegratedSecurity() const;
	LPCTSTR GetSQLServer() const;
	UINT GetSlotServerPort() const;
	LPCTSTR GetSlotServerName() const;
	int GetBetPerLine() const;
	int GetLinesPerSpin() const;

private:
// Dialog Data
	//{{AFX_DATA(CSelectSlotMachineDlg)
	enum { IDD = IDD_SELECT_SLOT_MACHINE };
	CDatabaseCombo	m_ctlDatabase;
	CButton	m_ctlUseIntegratedSecurity;
	CEdit	m_ctlPassword;
	CEdit	m_ctlUser;
	CSQLServerCombo	m_ctlSQLServer;
	CSlotGutListBox	m_ctlSlotGutList;
	CString	m_strSQLServer;
	BOOL	m_bUseIntegratedSecurity;
	CString	m_strUser;
	CString	m_strPassword;
	CString	m_strDatabase;
	CString	m_strSlotGutID;
	CString	m_strSlotServer;
	UINT	m_nCasinoBasePort;
	int m_nBetPerLine;
	int m_nLinesPerSpin;
	long m_nSlotGutID;
	CString m_strSlotName;
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelectSlotMachineDlg)
	public:
	virtual int DoModal();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectSlotMachineDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnUseIntegratedSecurity();
	afx_msg void OnChangeUserPassword();
	afx_msg void OnDatabaseChange();
	afx_msg void OnSQLServerChange();
	afx_msg void OnSQLServerKillFocus();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void LoadDatabases();
	bool IsGutAvailable();
	bool CreateSlotMachine();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SELECTSLOTMACHINEDLG_H__C466A529_ED81_474E_9260_DBA33B79AF42__INCLUDED_)
